<template>
	<div class="container">
		<Category title='游戏' >
			<template scope='youxi'>
				<!-- {{youxi.games}} -->
				<ul >
					<li v-for="(g,index) in youxi.games" :key="index">{{g}}</li>
				</ul>
			</template>
		</Category>
		
		<Category title='游戏' >
			<!-- 解构赋值 -->
			<template scope='{games}'>
				<!-- {{youxi.games}} -->
				<ol >
					<li style="color: #ff0000;" v-for="(g,index) in games" :key="index">{{g}}</li>
				</ol>
				<!-- <h4>{{youxi.msg}}</h4> -->
			</template>
		</Category>
		
		<Category title='游戏' >
			<template  scope='youxi'>
				<h4 v-for="(g,index) in youxi.games" :key="index">{{g}}</h4>
			</template>
		</Category>
	</div>
</template>

<script>
	import Category from './components/Category'
	export default {
		name:'App',
		components:{Category},
	}
</script>
<style scoped>
	.container,.foot{
		display: flex;
		justify-content: space-around;
	}
	img{
		width: 100%
	}
</style>